#!/bin/bash

echo "I: Remove useless software packages."

# ARCH=arm64
# # 获取参数
# for opt in $@; do
#     case "$opt" in
#         arch*)
#             # 指定了CPU架构
#             ARCH=$(echo "$opt" | awk -F '=' '{print$2}')
#             ;;
#         *) ;;
#     esac
# done

# # 删除软件包处理函数
# function remove_package()
# {
#     PACKAGE_NAME=$1
#     if (( $(apt-cache policy $PACKAGE_NAME | grep ^${PACKAGE_NAME} | wc -l) != 0 )); then
#         echo "I: Remove $PACKAGE_NAME"
#         apt-get autoremove --purge -y $PACKAGE_NAME > /dev/null
#     fi
# }
